package city.spring.modules.reception.repository;

import city.spring.modules.reception.entity.ReservationEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 存储库：预约登记
 *
 * @author 谢金婷
 * @date 2020-04-28 10:39:54
 */
@Repository
public interface ReservationRepository extends BaseMapper<ReservationEntity> {

    /**
     * 根据老人id查找预约记录
     *
     * @param oldmanId
     * @return
     */
    ReservationEntity getReservationByOldmanId(@Param("oldmanId") String oldmanId);
}